<?php
define('MODULE_NAME','Misc');

$actions = array('getcatdata', 'catinfo', 'verify','topicattention', 'checknotice', 'getusers', 'atusers', 'contact', 'feedback', 'payintro', 'getcode', 'soft_getcode', 'anlired_share', 'qrcode', 'realname_pay', 'realname_check_orderstatus');
$action = '';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = '';
}

if(empty($action))
	exit('Access Denied');

define('ACTION_NAME',$action);

require dirname(__FILE__).'/core/fanwe.php';
$fanwe = &FanweService::instance();
switch ('ACTION_NAME')
{
	case 'verify':
		$fanwe->is_session = false;
		$fanwe->is_user = false;
		$fanwe->is_cron = false;
	break;

	default:
	break;
}

$fanwe->initialize();

require fimport('module/misc');

switch(ACTION_NAME)
{
	case 'verify':
		MiscModule::verify();
		break;
	case 'topicattention':
		MiscModule::TopicAttention();
		break;
	break;
	case 'checknotice':
	    MiscModule::checknotice();
	break;
	case 'getusers':
	    MiscModule::getusers();
	break;
	case 'atusers':
	    MiscModule::atusers();
	break;
	case 'contact':
	    MiscModule::contact();
	break;
	case 'feedback':
	    MiscModule::feedback();
	break;
	case 'payintro':
	    MiscModule::payintro();
	break;
	case 'catinfo':
	    MiscModule::catinfo();
	break;
	case 'getcatdata':
	    MiscModule::getcatdata();
	break;
	case 'getcode':
	    MiscModule::getcode();
	break;
	case 'soft_getcode':
	    MiscModule::soft_getcode();
	break;
	case 'anlired_share':
	    MiscModule::anlired_share();
	break;
	case 'qrcode':
	    MiscModule::qrcode();
	break;
	case 'realname_pay':
		MiscModule::realname_pay();
	break;
	case 'realname_check_orderstatus':
		MiscModule::realname_check_orderstatus();
	break;
}
?>